package com.garygyp.springcloud.dao;

import com.garygyp.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author GaryGyp
 * 推荐使用Mapper注解
 */
@Mapper
public interface PaymentDao {

    // 创建一条记录
    public int create(Payment payment);

    // 查询一条记录
    public Payment getPaymentById(@Param("id") Long id);

}
